Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-airbnb-base

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-airbnb-base

Airbnb's base JS ESLint config, following our styleguide

  • 10.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.6M
decreased by-4.33%
Maintainers
2
Weekly downloads
 
Created

What is eslint-config-airbnb-base?

The eslint-config-airbnb-base package is a set of ESLint rules maintained by Airbnb. It provides a base set of rules for JavaScript projects, excluding React-specific rules. This package is designed to enforce Airbnb's coding standards and best practices, helping developers to write cleaner, more consistent code.

What are eslint-config-airbnb-base's main functionalities?

Style Guide Enforcement

By extending eslint-config-airbnb-base in your ESLint configuration file, you enforce a comprehensive set of coding standards and styles based on Airbnb's style guide. This includes rules for syntax, best practices, and avoiding common errors.

"extends": "airbnb-base"

Environment Configuration

The package allows you to configure the environment your code is expected to run in, such as browser or Node.js environments. This helps in applying specific rules that are relevant to the environment, ensuring code compatibility and preventing environment-specific errors.

{
  "env": {
    "browser": true,
    "node": true
  }
}

Customizable Rules

While eslint-config-airbnb-base provides a default set of rules, it also allows for customization. Developers can override or adjust the severity of specific rules to better fit their project's needs, offering flexibility alongside standardization.

{
  "rules": {
    "no-console": "off",
    "no-unused-vars": "warn"
  }
}

Other packages similar to eslint-config-airbnb-base

Keywords

FAQs

Package last updated on 07 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc